# Makefile generico para compilar con Aleph

# Autor: Alejandro J. Mujica (aledrums@gmail.com)

# Direcciones de la instalacion al utilizar el script install.sh
ALEPH_INC = /opt/aleph/include
ALEPH_LIB = /opt/aleph/lib
OPTIONS = -DDEBUG -g -std=c++0x

# Extension del programa usada, .C, .cpp, .cxx, etc...
EXT = .C

${MAKECMDGOALS}::
ifneq ($(MAKECMDGOALS),clean)
	g++ -w -O3 -L $(ALEPH_LIB) -I. -I $(ALEPH_INC) $(OPTIONS) $(MAKECMDGOALS)$(EXT) -o $(MAKECMDGOALS) -lAleph -lnana -lc -lm -lgsl -lgslcblas -lgmp -lmpfr -lasprintf
else
	$(RM) *~ *.o core
endif

